﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Gabriel.Algoritimos;

namespace Teste_de_Fila
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {

                Fila fila = new Fila(1000000000);
                fila.Insere(1);
                fila.Insere(1);

                for (double x = 0; x < 1000000000; x++)
                {
                    fila.Insere(x);
                    fila.Remove();
                }
            }
            catch (Exception excp)
            {
                MessageBox.Show(excp.Message);
            }
        }
    }
}
